how to solve modified euler method